
const model =require('../../../dao/model/model')
const beansEnter =require('../../../beans/beansEnter')
const { baseService2 } = require('../../baseService2')

/* 
记得在serviceEnter里注册一下
*/

/* 异常类 */
class post_serviceError extends Error {
    constructor(error,message='post_serviceError'){
        super()
        this.error = error
        this.message=message
    }
}


class post_service extends baseService2{

    static ins = new post_service()
    constructor(){
        super(model.job_schema_model,post_serviceError)
    }

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new post_service()
        }
    }


}







module.exports={post_service}
